package com.liumuxian.exam.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tp_article")
public class Article implements Serializable{
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "name")
    private String name;//文章名
    @Column(name = "summary")
    private String summary ;//摘要
    @Column(name = "chaptercount")
    private int chaptercount;//章节统计
    @Column(name = "thumbnail",length = 100)
    private String thumbnail;//预览图
    @Column(name = "isvip")
    private Integer isvip;//是否vip
    @Column(name = "state",length = 1)
    private Integer state;//状态
    @Column(name = "views",length = 20)
    private Long views;//阅读数
    @Column(name = "featured",length = 1)
    private Integer featured;//推荐状态
    @Column(name = "weight",length = 2)
    private Integer weight;//排序值
    @Column(name = "creatdate")
    private Date creatdate;
    @Column(name = "updatedate")
    private Date updatedate;


}
